
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module telemetry.internal.image_processing.cv_util</title>
<meta charset="utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.image_processing.html"><font color="#ffffff">image_processing</font></a>.cv_util</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/image_processing/cv_util.py">telemetry/internal/image_processing/cv_util.py</a></font></td></tr></table>
    <p><tt>This&nbsp;module&nbsp;provides&nbsp;implementations&nbsp;of&nbsp;common&nbsp;computer&nbsp;Vision&nbsp;operations.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.internal.util.external_modules.html">telemetry.internal.util.external_modules</a><br>
</td><td width="25%" valign=top><a href="numpy.html">numpy</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-AreLinesOrthogonal"><strong>AreLinesOrthogonal</strong></a>(line1, line2, tolerance)</dt><dd><tt>Returns&nbsp;true&nbsp;if&nbsp;lines&nbsp;are&nbsp;within&nbsp;tolerance&nbsp;radians&nbsp;of&nbsp;being&nbsp;orthogonal.</tt></dd></dl>
 <dl><dt><a name="-ExtendLines"><strong>ExtendLines</strong></a>(lines, length)</dt><dd><tt>Extends&nbsp;lines&nbsp;in&nbsp;an&nbsp;array&nbsp;to&nbsp;a&nbsp;given&nbsp;length,&nbsp;maintaining&nbsp;the&nbsp;center<br>
point.&nbsp;Does&nbsp;not&nbsp;necessarily&nbsp;maintain&nbsp;point&nbsp;order.</tt></dd></dl>
 <dl><dt><a name="-FindLineIntersection"><strong>FindLineIntersection</strong></a>(line1, line2)</dt><dd><tt>If&nbsp;the&nbsp;line&nbsp;segments&nbsp;intersect,&nbsp;returns&nbsp;True&nbsp;and&nbsp;their&nbsp;intersection.<br>
Otherwise,&nbsp;returns&nbsp;False&nbsp;and&nbsp;the&nbsp;intersection&nbsp;of&nbsp;the&nbsp;line&nbsp;segments&nbsp;if&nbsp;they<br>
were&nbsp;to&nbsp;be&nbsp;extended.</tt></dd></dl>
 <dl><dt><a name="-IsPointApproxOnLine"><strong>IsPointApproxOnLine</strong></a>(point, line, tolerance<font color="#909090">=1</font>)</dt><dd><tt>Approximates&nbsp;distance&nbsp;between&nbsp;point&nbsp;and&nbsp;line&nbsp;for&nbsp;small&nbsp;distances&nbsp;using<br>
the&nbsp;determinant&nbsp;and&nbsp;checks&nbsp;whether&nbsp;it's&nbsp;within&nbsp;the&nbsp;tolerance.&nbsp;Tolerance&nbsp;is<br>
an&nbsp;approximate&nbsp;distance&nbsp;in&nbsp;pixels,&nbsp;precision&nbsp;decreases&nbsp;with&nbsp;distance.</tt></dd></dl>
 <dl><dt><a name="-SqDistance"><strong>SqDistance</strong></a>(point1, point2)</dt><dd><tt>Computes&nbsp;the&nbsp;square&nbsp;of&nbsp;the&nbsp;distance&nbsp;between&nbsp;two&nbsp;points.</tt></dd></dl>
 <dl><dt><a name="-SqDistances"><strong>SqDistances</strong></a>(points1, points2)</dt><dd><tt>Computes&nbsp;the&nbsp;square&nbsp;of&nbsp;the&nbsp;distance&nbsp;between&nbsp;two&nbsp;sets&nbsp;of&nbsp;points,&nbsp;or&nbsp;a<br>
set&nbsp;of&nbsp;points&nbsp;and&nbsp;a&nbsp;point.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>division</strong> = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)</td></tr></table>
</body></html>